/**
 * Copyright 2008 Adam Ruggles.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package kiff.dao.hibernate;

import kiff.dao.GlobalAclDAO;
import kiff.entity.GlobalAcl;
import kiff.exception.DataLayerException;
import kiff.util.Parameter;

/**
 * A Hibernate implementation of the GlobalAclDAO interface.
 * @author Adam
 * @version $Id: GlobalAclHibernateDAO.java 73 2008-12-02 06:28:25Z a.ruggles $
 * 
 * Created on Oct 22, 2008 at 9:45:26 PM 
 */
public class GlobalAclHibernateDAO extends AbstractHibernateDAO<GlobalAcl> implements GlobalAclDAO {
	/**
	 * {@inheritDoc}
	 * @see kiff.dao.GlobalAclDAO#findByName(java.lang.String)
	 */
	public GlobalAcl findByName(final String name) throws DataLayerException {
		return findResult(GlobalAclDAO.FIND_BY_NAME, Parameter.create("name", name));
	}
}
